using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SymbolicComputation
{
    public class Simplify
    {
        public static String SimplifyWithAllTransforms(String inEquation)
        {
            SymbolicComputation.AI.SolveEquationBase worker = new SymbolicComputation.AI.SolveEquationBase();
            worker.Transforms = Transform.StringToTransforms(TransformSets.AllAsList().ToArray()).ToList();
            worker.ai.maxWhileLoops = 5;
            worker.ai.trimmedJobStatePopulation = 10;
            String result = worker.Solve(inEquation);
            String[] results = ArtificialIntelligence.Job.Equations(worker.ai.jobStates.ToArray());
            return results[0];
        }
    }
}